-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps: Update keytar and whats-my-line (allows building on Node 18 or newer) #35
base: master
Are you sure you want to change the base?
Conversation
This dependency bump is motivated by seeking to get rid of outdated nan, which was an indirect dependency via keytar. Dropping nan should hopefully allow compiling native C/C++ code against newer and newer versions of NodeJS and Electron -- "hopefully". This version of keytar drops its dependency on nan, instead using "N-API", now officially renamed to "Node-API". Hopefully this means it will not need changes to maintain forward-compatibility with future versions of NodeJS and Electron -- "hopefully." So, there may also be benefits for upgrading to newer versions of Electron -- I haven't tested this, I just want to be able to bootstrap Pulsar core repo on newer system versions of NodeJS, however irrelevant system NodeJS version may be to final execution in Electron. ... This is the latest, and final upstream release of atom/node-keytar; The upstream repository is now archived. If we want to see changes in keytar beyond this, we must search for a suitable, existing fork, or create one ourselves.
This is for Python 3.12+ compatibility in older node-gyp
Switches superstring indirect dependency to Pulsar's fork as well
Uses lockfile v1, which ppm (npm 6) is more compatible with
Also update to a commit of whats-my-line where superstring is specified as a tarball URL, not a git URL. Otherwise, no changes. Just using a simpler format (tarballs), which are quicker to fetch and quicker to install than git URL dependencies, as well as being just a lot simpler to deal with under the hood.
This PR's goals were achieved. The module builds in CI on Node 18 on all three major OSes... even if CI isn't passing in general in this repo (before/regardless-of this specific PR's changes). The point is: The project builds on Node 18. Also build on macOS with Node 20 on my machine. Of course, it is working in Pulsar as well, so it works with/builds against Electron 12. (Tested with
Hopefully can help unblock one more thing with regards to Electron upgrades in Pulsar core repo. |
This is just the commit from *after merging* the whats-my-line PR that specified superstring as a tarball URL rather than as a git URL. No code changed, this just points to the merge commit after merging, instead of the PR branch tip pre-merge. (For the benefit of folks who spelunk through the commit histories. This is a slightly tidier landmark in the whats-my-line repo to point to: a merge commit into `master` branch, rather than a random-looking pre-merge commit. No change otherwise.)
Okay, I updated to the commit of So, this is really ready now. Marking "Ready for review" (taking out of draft status). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gonna approve this one.
While I can't verify things work (As the CI is failing us) if you can build it locally that's fine by me lol, and sounds like a plan then to get this one merged, and get these updates into the core.
I know this one has been open forever, so I'm happy you've stuck by it's side
This dependency bump is motivated by seeking to get rid of outdated nan, which was an indirect dependency via keytar. Dropping nan should hopefully allow compiling native C/C++ code against newer and newer versions of NodeJS and Electron -- "hopefully".
This version of keytar drops its dependency on nan, instead using "N-API", now officially renamed to "Node-API". Hopefully this means it will not need changes to maintain forward-compatibility with future versions of NodeJS and Electron -- "hopefully."
So, there may also be benefits for upgrading to newer versions of Electron -- I haven't tested this, I just want to be able to bootstrap Pulsar core repo on newer system versions of NodeJS, however irrelevant system NodeJS version may be to final execution in Electron.
...
This is the latest, and final upstream release of atom/node-keytar; The upstream repository is now archived.
(See: https://github.com/atom/node-keytar/releases)
If we want to see changes in keytar beyond this, we must search for a suitable, existing fork, or create one ourselves.
Verification process:
github
package after this change.